<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

class Activity extends BaseModel
{
    use HasDateTimeFormatter;

    // 状态
    const STATE_WAIT = 1;//待开始
    const STATE_ING = 2;//进行中
    const STATE_END = 3;//已结束

    protected $table = 'activity';

    public static function stateMap()
    {
        return [self::STATE_WAIT => '待开始', self::STATE_ING => '进行中', self::STATE_END => '已结束'];
    }
}
